package cc.linker.steplink.crm.merchant.dao;

import cc.linker.steplink.crm.merchant.pojo.RightPo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface RightDao {

    List<RightPo> getRightList(Map<String, Object> params);

    List<RightPo> getAllRightList(Map<String, Object> params);

    Integer getUseCount(@Param("id") Long id);

    RightPo getRightInfo(@Param("id") Long id);

    void delete(@Param("id") Long id);

    void deleteLevel(@Param("rightId") Long rightId);

    void deleteVip(@Param("rightId") Long rightId);

    void insert(Map<String, Object> param);

    void update(Map<String, Object> param);

    void insertLevelRel(Map map);

    String getRightNamesBylevelId(@Param("levelId") String levelId);

    void deleteRelByLevelId(@Param("levelId") String levelId);

    String getRightIdsBylevelId(@Param("levelId") String levelId);

    void insertVipRel(Map map);

    void deleteRelByVipId(@Param("vipId") String vipId);

    String getRightIdsByVipId(@Param("vipId") Integer vipId);

    void insertOrg(Map<String, Object> params);

    int getRightCount(Map<String, Object> params);

    void insertVipCouponRel(Map map);

    void deleteCouponRelByVipId(@Param("vipId") String vipId);
}
